package com.weiqiao.report.distributior.repository;

import org.bson.Document;
import org.bson.conversions.Bson;

import java.util.List;

public interface IAccountDetailReportRepository {

    /**
     * 查询单个收支
     *
     * @return
     */
    String findOneAccountDetail(int company_id, Bson filter);

    /**
     * 更新
     *
     * @return
     */
    boolean updateDetail(Document doc, Bson filter, int company_id);

    int countNum(int company_id, Bson delete_flag);

    List<String> getAccountDetailByFilterSortLimit(int company_id, Bson filter, Bson sort, int skip, int pageSize);

    /**
     * 查询集合
     * @param company_id
     * @param filter
     * @return
     */
    List<String> getList(int company_id, Bson filter);

    /**
     * 新增
     *
     * @param json
     * @param company_id
     * @return
     */
    boolean insertOne(int company_id, String json);
}
